from  django.urls import path,include
from . import views
from .feeds import LatestPostsFeed
app_name="blog"
urlpatterns = [
    path('',views.post_list,name='post_list'),
    path('tag/<slug:slug_tags>', views.post_list, name='post_tag'),
    # path('',views.PostListView.as_view(),name='post_list'),
    path('<int:year>/<int:month>/<int:day>/<slug:post>',
         views.post_detail,name='post_detail'),
    path('<int:post_id>/share/', views.post_share, name='post_share'),
    path('feed/',LatestPostsFeed(),name='post_feed'),
    path('search_ss/', views.post_search, name='post_search'),
    path('search/', include('haystack.urls'))
]